package com.laituo.juyou.core;

import com.alibaba.fastjson.TypeReference;

import java.util.ArrayList;
import java.util.List;

/**
 * redis常量
 *
 * @author xuyang
 */
public class Const {

    public static final List<Class> IGNORE_PARAM_LIST = new ArrayList<>();

    static {
        IGNORE_PARAM_LIST.add(Integer.class);
        IGNORE_PARAM_LIST.add(Long.class);
        IGNORE_PARAM_LIST.add(String.class);
        IGNORE_PARAM_LIST.add(Float.class);
        IGNORE_PARAM_LIST.add(Double.class);
        IGNORE_PARAM_LIST.add(Boolean.class);
    }

    public static final Integer CACHE_ONE_HOUR = 60 * 60 * 1;
    public static final Integer CACHE_HALF_HOUR = 60 * 30;
    public static final Integer CACHE_ONE_DAY = 60 * 60 * 24;

    public static final Integer CACHE_TWO_DAY = 60 * 60 * 24 * 2;

    public static final Integer CACHE_THREE_DAY = 60 * 60 * 24 * 3;

    public static final Integer CACHE_SEVEN_DAY = 60 * 60 * 24 * 7;

    public static final String USER_ACCESS_TOKEN = "ACCESSTOKEN";

    public static final String USER_REDIS_PREFIX = "USER_SESSION_";

    public static final String RIDER_ACCESS_TOKEN = "RIDERTOKEN";

    public static final String RIDER_REDIS_PREFIX = "RIDER_SESSION_";

    public static final String ADMIN_ACCESS_TOKEN = "ADMINTOKEN";

    public static final String ADMIN_REDIS_PREFIX = "ADMIN_SESSION_";
    /**
     * 骑手订单信息
     */
    public static final String RIDER_ORDER = "RIDER_ORDER::";

    /**
     * 团购信息常量
     */
    public static final String GROUP_SHOP_INFO = "GROUP_SHOP_INFO";
    /**
     * 团购分组信息
     */
    public static final String GROUP_USER_INFO = "GROUP_USER::INFO::";
    /**
     * 团购小组数量
     */
    public static final String GROUP_USER_NUM = "GROUP_USER::NUM::";
    /**
     * 仓库信息
     */
    public static final String STORAGE_INFO = "STORAGE_INFO";

    /**
     * 骑手配送费用
     */
    public static final String RIDER_ORDER_MONEY = "RIDER_ORDER_MONEY";

}
